package zhanglu.family.socket.demo.busdemo.client2;

import org.apache.log4j.PropertyConfigurator;

import zhanglu.family.socket.demo.busdemo.request.RequestTest;
import zhanglu.family.socket.textline.busclient.BusTCPClient;

public class ClientDemo2 {
    public static void main(String[] args) {
        PropertyConfigurator.configure("log4j.properties");

        BusTCPClient client = new BusTCPClient("127.0.0.1", 8888);
        client.startClient(new ClientHandlerDemo2(client), 1250978781L);

        RequestTest bean = new RequestTest();

        bean.setTest("我是demo2，给你发消息。你记得回给我");

        client.post(1L, 1L, 592886931L, bean);
    }
}
